package com.tudouji.project.customer.service;

import com.tudouji.framework.web.domain.AjaxResult;
import com.tudouji.project.bill.domain.Recharge;
import com.tudouji.project.customer.domain.Customer;
import com.tudouji.project.system.domain.SysUser;

import java.math.BigDecimal;
import java.util.List;

/**
 * 客户管理Service接口
 *
 * @author wf
 * @date 2020-12-30
 */
public interface ICustomerService
{
    /**
     * 查询客户管理
     *
     * @param guid 客户管理ID
     * @return 客户管理
     */
    public Customer selectCustomerById(String guid);

    /**
     * 查询客户管理列表
     *
     * @param customer 客户管理
     * @return 客户管理集合
     */
    public List<Customer> selectCustomerList(Customer customer);
    public BigDecimal selectCustomerListSum(Customer customer);

    /**
     * 新增客户管理
     *
     * @param customer 客户管理
     * @return 结果
     */
    public int insertCustomer(Customer customer);

    /**
     * 修改客户管理
     *
     * @param customer 客户管理
     * @return 结果
     */
    public int updateCustomer(Customer customer);
    public int updateCustomerWx(Customer customer);

    /**
     * 批量删除客户管理
     *
     * @param guids 需要删除的客户管理ID
     * @return 结果
     */
    public int deleteCustomerByIds(String[] guids);

    /**
     * 删除客户管理信息
     *
     * @param guid 客户管理ID
     * @return 结果
     */
    public int deleteCustomerById(String guid);

    AjaxResult save(Customer customer, String fileIds);

    AjaxResult confirm(Long id, String imgids, String opinion, Long taskid);

    AjaxResult approval(Long id, String imgids, String opinion, Long taskid);

    AjaxResult refuse(Long id, String fileIds, String opinion, Long taskid, Long refuseNodeid, Long backUserid);

    AjaxResult unable(Long id);

    List<Customer> selectCustomerWxList(Customer customer, String status, String functionType);

    AjaxResult detail(Long id);
    AjaxResult prebalancedetail(Long id);

    AjaxResult del(Long id);

    List<Customer> getCustomers(String departId, String functionType);

    public void recharge(Customer customer, BigDecimal amount, SysUser user, Recharge recharge, int type,String remark);
}
